<?php
include("header.php");
//tes login
<<<<<<< .mine
/*include("../dao/login.php");
$log = new Login_Dao();
if($log->logincheck($_SESSION['loggedinuser'],"user","myusername","mypassword") == false){
=======
//include("../dao/login.php");
//$log = new Login_Dao();
if(isset($_SESSION['loggedinuser'])){
//if($log->logincheck($_SESSION['loggedinuser'],"user","myusername","mypassword") == true){
if($log->getUserName()!=""){
header("location:addblog.php");
}
}else{
>>>>>>> .r44
header("location:login.php");
}
<<<<<<< .mine
echo "Welcome : ".$log->getUserName()."";*/
=======

//echo "Welcome : ".$log->getUserName()."";
>>>>>>> .r44
?>
<div class="container">
<div class="row">
<?php
	include("sidebar.php");
	?>
<div class="span9">
                    <div class="page-header">
                        <h1>Tambah Blog</h1>
                    </div>
                        <div class="span9">
                            <form class="form-horizontal">
                                <fieldset>
                                    <div class="control-group">
                                        <label for="focusedInput" class="control-label">Judul:</label>
                                        <div class="controls">
                                            <input type="text" placeholder="Judul" id="focusedInput" class="input-xlarge focused span6">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">Gambar:</label>
                                        <div class="controls">
                                            <input type="file" name ="image" class="input-xlarge focused span6">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">Isi:</label>
                                        <div class="controls">
                                            <textarea rows="20" class="input-xlarge focused span6"></textarea>
                                        </div>
                                    </div>
                                    
									<div class="span8">
                                        <button class="btn btn-primary pull-right" style="margin-right: 20px;" type="submit">Add</button>
                                    </div><br /><br />
									
                                </fieldset>
                            </form>
                        </div>
                    </div>
					</div>
					</div>
<?php
include("footer.php");
?>